{extend name="layout_modal" /}
{block name="css"}
<link rel="stylesheet" href="{$statics}plugins/select2/select2.css">
<link href="{$statics}plugins/um/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
{/block}
{block name="script"}
<script src="{$statics}plugins/select2/select2.full.min.js"></script>
<script type="text/javascript" src="{$statics}plugins/um/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.min.js"></script>
<script type="text/javascript" src="{$statics}plugins/um/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript">
  var um = UM.getEditor('myEditor',{initialFrameWidth:null});
</script>
{/block}
{block name="content"}
{assign name="data" value=":get_model_func('CityRecruit','get_data',['item_id'=>1])"}
<section class="content" style="padding-top:0px;">
    <div class="row">
        <div class="box">
            <form role="form" action="{:url($keyname)}"> 
                <div class="box-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">完成任务数</label>
                        <input type="text" class="form-control" placeholder="完成任务数" name="tasks" value="{$data.tasks}">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">开始时间</label>
                        <input type="text" class="form-control date" placeholder="开始时间" name="starttime">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">结束时间</label>
                        <input type="text" class="form-control datetime" placeholder="结束时间" name="endtime">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">荣誉值</label>
                        <input type="text" class="form-control" placeholder="荣誉值" name="honors" value="{$data.honors}">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">经验值</label>
                        <input type="text" class="form-control" placeholder="经验值" name="expers" value="{$data.expers}">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">合同期限</label>
                        <input type="text" class="form-control" placeholder="单位/月" name="pacttimes" value="{$data.pacttimes}">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">招募状态</label>
                        <input type="text" class="form-control" placeholder="招募状态" name="tasks" value="{$data.tasks}">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">招募信息发表时间</label>
                        <input type="text" class="form-control datetime" placeholder="招募信息发表时间" name="dateline" value="{$data.dateline}">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">详细介绍</label>
                        <script type="text/plain" id="myEditor" style="width:100%;height:240px;">
                            {$data.description}
                        </script>
                    </div>
                </div>
                <!-- /.box-body -->
                <input type="hidden" value="{$item_id}" name="cityid">
                <input type="hidden" value="{$data.id}" name="id">
            </form>
        </div>
    </div>
</section>
<!-- /.content -->
{/block}